import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/node_tasks_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/node_tasks_entity.g.dart';

@JsonSerializable()
class NodeTasksEntity {

	NodeTasksEntity();

	factory NodeTasksEntity.fromJson(Map<String, dynamic> json) => $NodeTasksEntityFromJson(json);
	late String desc = '';
	late String nodeId = '';
	late String nodeName = '';
	late List<NodeTasksTasks> tasks = [];
  /// 是否是展开状态
  late bool isExpanded = false;

  /// 是否选中
  late bool isSelect = false;

	Map<String, dynamic> toJson() => $NodeTasksEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class NodeTasksTasks {

	NodeTasksTasks();

	factory NodeTasksTasks.fromJson(Map<String, dynamic> json) => $NodeTasksTasksFromJson(json);
	late String companyCode = '';
	late String createBy = '';
	late String createById = '';
	late String createDate = '';
	late String deleted = '';
	late String id = '';
	late String nodeId = '';
	late String processEncoding = '';
	late String taskInfo = '';
	late String updateBy = '';
	late String updateById = '';
	late String updateDate = '';
	late List<String> userIdList = [];
	late String userList = '';
	late List<String> userNameList = [];
	late int whetherToDrill = 0;
  /// 是否选中
  late bool isSelect = false;

	Map<String, dynamic> toJson() => $NodeTasksTasksToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
